<?php
namespace app\ausadmin\validate;
use think\Validate;
class Wechatpay extends Validate
{
	//微信支付自动验证
	protected $rule=[
        'mchid'=>'require',
        'mchkey'=>'require',
        'sslcert_path'=>'require',
        'sslkey_path'=>'require',
        'app_key'   => 'require'
    ];


    protected $message=[
        'mchid.require'=>'商户号不得为空！',
        'mchkey.require'=>'商户key不得为空！',
        'sslcert_path.require'=>'sslcert密钥文件必须得上传！',
        'sslkey_path.require'=>'sslkey密钥文件必须得上传！',
        'app_key.require'   => '请填写微信小程序app_key'
    ];

    protected $scene=[
        'add'=>['mchid','mchkey','sslcert_path','sslkey_path', 'app_key'],
    ];
}